<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>Bilgi Formu</title>
</head>
<body>
<h2>BİLGİ FORMU!</h2>
<f:view>
	<h:form>
		<h:panelGrid columns="2">
			
		Fakulte:
		 <h:selectOneMenu  immediate="true"
				valueChangeListener="#{fakulte.loadBolumlar}"
				onchange="submit()">
				<f:selectItem itemValue="1"  itemLabel="Muhendislik"/>
				<f:selectItem itemValue="2"  itemLabel="Guzel Sanatlar"/>
			</h:selectOneMenu>
	
		Bolum: <h:selectOneMenu>
				<f:selectItems value="#{fakulte.bolumler}" />
		</h:selectOneMenu>
			<h:commandButton action="#{homeworkBean.register}" value="Kaydet" />
		</h:panelGrid>
	</h:form>
	</f:view>
</body>
</html>
